{include file="public_head" /}

<!-- datatables -->
<link href="__STATIC__/js/datatables/jquery.dataTables.min.css" rel="stylesheet" type="text/css"/>
<!-- chk_3 -->
<link href="__STATIC__/css/chk_3.css" rel="stylesheet" type="text/css"/>

<body class="nav-md">

<div class="container body">


    <div class="main_container">

        {include file="public_sidebar,public_nav" /}

        <!-- page content -->
        <div class="right_col" role="main">
            <div class="">
                <div class="page-title">
                    <div class="title_left">
                        <h3>

                        </h3>

                    </div>
                </div>
                <div class="clearfix"></div>

                <div class="row">

                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>我的邀请会员</h2>
                                <div class="clearfix"></div>

                            </div>
                            <form name="form"  method="get" action="">
                                <div class="input-group" style="float: left;margin: 0 20px; position: relative;z-index: 10000">
                                    <input type="text" class="form-control" name="interval_timer"
                                           id="interval_timer"
                                           style="width: 200px;"
                                           placeholder="请选择时间区间..." value="{:input('interval_timer')}">
                                </div>
                                <div class="col-md-2 col-sm-3 col-xs-3 form-group pull-left top_search">
                                    <div class="input-group">
                                        <input type="text" class="form-control" name="title"
                                               placeholder="输入搜下内容..." value="{:input('title')}">
                                    </div>

                                </div>

                                <button type="submit" class="btn btn-primary" style="margin-left: 10px;">搜 索</button>
                            </form>
                            <div class="x_content">

                                <form name="form" id="form" method="get" action="">
                                    <div class="title_left">

                                        <!--<div class="input-group col-md-2 col-sm-3 col-xs-4" style="float: left;margin: 0 2%;">-->



                                        <!--<select name="status" class="select2_single" style="width: 100%;"-->

                                        <!--tabindex="-1">-->

                                        <!--<option value="0">- 请选择登录状态 -</option>-->

                                        <!--<option value="1" {eq name=':input("status")' value='1' }selected{/eq}>启用</option>-->

                                        <!--<option value="2" {eq name=':input("status")' value='2' }selected{/eq}>禁用</option>-->

                                        <!--</select>-->

                                        <!--</div>-->

                                        <!--<div class="col-md-2 col-sm-3 col-xs-3 form-group pull-left top_search" style="display: none;">-->

                                            <!--<div class="input-group">-->

                                                <!--<input type="text" class="form-control" name="title"-->

                                                       <!--placeholder="输入用户账号..." value="{:input('title')}">-->

                                            <!--</div>-->

                                        <!--</div>-->

                                        <!--<button type="submit" class="btn btn-primary" style="margin-left: 10px;">搜 索-->

                                        <!--</button>-->
                                    </div>
                                    <form>


                                    <table style="border-bottom:1px solid #ddd;"
                                           class="table table-striped table-bordered table-hover">
                                        <thead>
                                        <tr class="success">
                                            <!--<th style="width: 2%; padding: 10px;">-->
                                                <!--<input type="checkbox" class="checkall"-->
                                                       <!--onclick="CheckAll(this.checked);"/>-->
                                            <!--</th>-->
                                            <!--<th>排序</th>-->
                                            <th width="30">ID</th>
                                            <th width="">会员名称</th>
                                            {eq name="$auding_status" value="2"}
                                            <th width="">真实姓名</th>
                                            <th width="">性别</th>
                                            <th width="">身份证号</th>
                                            <th width="">是否认证</th>
                                            <th width="">昵称</th>
                                            <th width="">级别</th>
                                            {/eq}
                                            <th width="">消费金额</th>
                                            <th width="">创建时间</th>

                                        </tr>
                                        </thead>
                                        <tbody>
                                        {empty name="member_share"}
                                            <tr><td colspan="10"><div style='font-size:24px;margin:30px 0;'>没有找到记录</div></td></tr>
                                        {/empty}
                                        {volist name="member_share" id="item"}
                                        <tr >
                                            <td>{$item.id}</td>
                                            <td>{$item.username}</td>
                                            {eq name="$auding_status" value="2"}
                                            <td>{$item.real_name}</td>
                                            <td>{switch item.sex}
                                                {case 1}男{/case}
                                                {case 2}女{/case}
                                                {default /}无
                                                {/switch}
                                            </td>
                                            <td>{$item.id_number}</td>
                                            <td>{switch item.is_certification }
                                                {case 1}未认证{/case}
                                                {case 3}未认证{/case}
                                                {case 2}已认证{/case}
                                                {default /}默认情况
                                                {/switch}
                                            </td>
                                            <td>{$item.nickname}</td>
                                            <td>{switch item.level}
                                                {case 1}1级{/case}
                                                {case 2}2级{/case}
                                                {case 3}3级{/case}
                                                {case 4}4级{/case}
                                                {case 5}5级{/case}
                                                {default /}无
                                                {/switch}
                                            </td>
                                            {/eq}
                                            <td><a href="{:url('orderlook', ['id' => $item['id']])}">{$item.amount}</a></td>
                                            <td>{$item.create_time}</td>

                                            </td>
                                        </tr>
                                        {/volist}

                                        </tbody>
                                    </table>
                                        <button type="button" class="btn btn-info" style="margin-top: 20px;" onclick="dc({:input('coupon_id')})">导出</button>
                                </form>
                            </div>
                        </div>
                    </div>

                </div>
            </div>

        </div>
        <!-- /page content -->
    </div>

</div>

{include file="public_foot" /}
<!-- public -->
<script src="__STATIC__/js/public.js"></script>
<!-- layer -->
<script src="__STATIC__/js/layer.js"></script>
<link href="__STATIC__/css/select/select2.min.css" rel="stylesheet">
<script src="__STATIC__/js/layer.js"></script>
<script src="__STATIC__/js/select/select2.full.min.js"></script>
<script type="text/javascript">

    // list

    $(document).ready(function () {

        // select2

        $(".select2_single").select2({
            placeholder: "请选择分类",
            allowClear: true

        });
        $('#interval_timer').daterangepicker(null,
            function(start, end, label) {
//                console.log(start.toISOString(), end.toISOString(), label);
            });
    });

    function dc(){
        var title = "{:input('title')}";
        var both = "{:input('interval_timer')}";
        var id = "{:input('member_id')}";
        window.location.href = "{:url('member')}?export=123&pa=10000&title="+title+"&interval_timer="+both+'&id='+id;
    }

</script>